//
//  APPLEViewController.h
//  DeepBreathing
//
//  Created by rimi on 15/12/15.
//  Copyright © 2015年 rimi. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface APPLEViewController : UIViewController

@property(nonatomic,strong,readonly,nonnull)UIViewController *mainviewcontroller;
@property(nonatomic,strong,readonly,nonnull)UIViewController *leftviewcontroller;
@property(nonatomic,strong,readonly,nonnull)UIViewController *rightViewController;

@property(nonatomic)BOOL rightOpen;
@property(nonatomic)BOOL leftOpen;
@property(nonatomic,strong,readonly,nonnull)UIView *blackView;

@property(nonatomic,strong,readonly,nonnull)UIScreenEdgePanGestureRecognizer *gestureForOpenningLeftDawer;

@property(nonatomic,strong,readonly,nonnull)UIScreenEdgePanGestureRecognizer *gestureForCloseingLeftDawer;



-(nullable instancetype)initWithMainViewController:(nullable UIViewController *)mainviewcontroller leftViewController:(nullable UIViewController *)leftviewcontroller rightViewController:(nullable UIViewController *)rightViewController;


-(nullable instancetype)initWithMainViewController:(UIViewController *__nonnull)mainviewcontroller leftViewController:(UIViewController *__nonnull)leftviewcontroller;

-(void)openLeftDrawer;
-(void)closeLeftDrawer;
-(void)openRightDrawer;
-(void)closeRightDrawer;

-(void)handleDrawerforLeft:(BOOL)isleft open:(BOOL)isopen;

@end
